// 引入创建stroe的方式
import { createStore, applyMiddleware } from 'redux'

// 引入allReducer
import allReducer from './index'

// 处理异步action
import thunk from 'redux-thunk'

//暴露 store
export default createStore(allReducer, applyMiddleware(thunk))
